class AddRoleData < ActiveRecord::Migration
  def self.up
    say "add roles"
    Role.delete_all
    Role.create :label => "user"
    
    Role.create :label => "superadmin",
      :create_actuality => 1,
      :modify_actuality => 1,
      :delete_actuality => 1,
      :add_article => 1,
      :modify_article => 1,
      :delete_article => 1,
      :add_product => 1,
      :modify_product => 1,
      :delete_product => 1,
      :add_user => 1,
      :modify_user => 1,
      :delete_user => 1,
      :view_store => 1
      
    Role.create :label => "pharmacien",
      :add_product => 1,
      :modify_product => 1,
      :delete_product => 1,
      :view_store => 1

    Role.create :label => "webadmin",
      :create_actuality => 1,
      :modify_actuality => 1,
      :delete_actuality => 1,
      :add_article => 1,
      :modify_article => 1,
      :delete_article => 1

  end

  def self.down
  end
end
